//
//  MyListViewController.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/4/29.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "MyListViewController.h"
#import "DZNSegmentedControl.h"
#import "AccountTableViewCell.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
#import "DetailsWebViewController.h"
#import "CuCunTableViewCell.h"
#import "DataImageViewController.h"
#import "MainTabBarController.h"
#import "ListViewController.h"
#import "LineView.h"
#import "LineListView.h"
#import "ListView.h"
#import "DateBut.h"
#import "MyListModel.h"
#import "PMCalendar.h"
#import "GMDCircleLoader.h"

#import "MyShoppingList_ViewController.h"
#import "AlertView.h"
#import "AccountViewController.h"

#import "SDRefresh.h"

#import "Reachability.h"
#import "NetStatus.h"

@interface MyListViewController ()<CuCunTableViewCellDelegate,MyListModelDelegate,UITextFieldDelegate,PMCalendarControllerDelegate,UIGestureRecognizerDelegate>{
    

    
    int a;
    UIButton *_mylineBut;
    UIButton *_lineBut;
    UILabel *_stateLabel;
    
    NSInteger selete;//点击已付款／未付款 状态
    UIButton *_yiFuKuan;//已付款
    UIButton *_weiFuKuanBut;//未付款but
    UITextField *_searchView;//搜索框
    
    UITapGestureRecognizer *_singleTap;

}
@property (nonatomic, strong) SDRefreshFooterView *refreshFooter;

@property (nonatomic, strong) NSMutableArray *listArray;
@property (nonatomic, strong) DateBut *mydateBtn;//时间but
@property (nonatomic, strong) MyListModel *myListModel;//Model


@property (nonatomic, copy) NSString *startTime;//开始时间
@property (nonatomic, copy) NSString *endTime;//结束时间
@property (nonatomic, strong) PMCalendarController *pmCC;
@end
static NSString *accountCell = @"Cell";
@implementation MyListViewController

- (instancetype)init{
    self = [super init];
    if (self) {
        self.listArray = [NSMutableArray array];//用来存储已付款订单／为付款订单model
    }
    return self;
}

- (void)dealloc{
    [self.view removeGestureRecognizer:_singleTap];
    [self.refreshFooter removeFromSuperview];
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = LineColor;
    selete = 0;
    [self.navigationItem setHidesBackButton:YES];
    


    [self createDateButton];
    [self createNavSubviews];
    [self createTableView];
   

    
    
    _singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)];
    _singleTap.delegate = self;
    [self.view addGestureRecognizer:_singleTap];
    
    [self setupFooter];
    
    
    //判断是否有网
    NetStatus *status = [[NetStatus alloc] init];
    if ([status.networkStatus isEqualToString:@"无网络"]) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"无网络" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    //获取已付款的订单
    self.myListModel = [[MyListModel alloc] init];
    self.myListModel.myListModelDelegate = self;
    NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
    NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"2"};
    [self.myListModel getCarList:self.listArray parameter:parameterDic];
    [GMDCircleLoader setOnView:self.view withTitle:@"加载中···" animated:YES];
    
}

- (void)setupFooter
{
    self.refreshFooter = [SDRefreshFooterView refreshView];
    [self.refreshFooter addToScrollView:self.tableView];
    [self.refreshFooter addTarget:self refreshAction:@selector(footerRefreshs)];
}



- (void)footerRefreshs
{
    if (self.listArray.count % 10 != 0) {
        [self.refreshFooter endRefreshing];
        return;
    }
    NSInteger page = self.listArray.count / 10;
    page += 1;
    NSString *pageNum = [NSString stringWithFormat:@"%ld",(long)page];
    NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
    
    if (selete == 0) {
        //已付款上拉加载
        NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"2",@"PageID":pageNum};
       [self.myListModel getaddCarList:self.listArray parameter:parameterDic];
    } else{
        //未付款上拉加载
        NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"1",@"PageID":pageNum};
        [self.myListModel getaddCarList:self.listArray parameter:parameterDic];
    }
    
}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
    
    if ([touch.view isKindOfClass:[UIButton class]]){
        
        return NO;
        
    }
    
    return YES;
     
}
#pragma -mark 点击self.view的点击手势
-(void)handleSingleTap:(UITapGestureRecognizer *)sender
{
//    [self.view endEditing:YES];
    [_searchView resignFirstResponder];
}
#pragma -mark 创建TabView

- (void)createTableView{
    UIView *aview = [[UIView alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 40)];
    aview.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:aview];
    
    
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(10, 16, 10, 10)];
    image.image = [UIImage imageNamed:@"自动补货订单---订单详情_03"];
    [aview addSubview:image];
    
    //库存订单View
    //库存订单View
    UILabel *kuCunTitle = [[UILabel alloc] initWithFrame:CGRectMake(image.right+5, 5, 80, 30)];
    kuCunTitle.text = @"库存订单-";
    [aview addSubview:kuCunTitle];
    
    _stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(kuCunTitle.right, 5, 100, 30)];
    _stateLabel.text = @"已付款";
    [aview addSubview:_stateLabel];

    
    UILabel*line = [[UILabel alloc] initWithFrame:CGRectMake(0, aview.bottom+1, SCREEN_WIDTH, 0.5)];
    line.backgroundColor = DaoHangColor;
    [self.view addSubview:line];
    
    UILabel*lineview = [[UILabel alloc] initWithFrame:CGRectMake(0, line.bottom, SCREEN_WIDTH, 10)];
    lineview.backgroundColor = LineColor;
    [self.view addSubview:lineview];
    
    
    self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, lineview.bottom, SCREEN_WIDTH, SCREEN_HEIGHT-aview.frame.size.height-10-1.5-100)];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    [self.view addSubview:self.tableView];
    
    //返回按钮
    
    UIButton *backBut = [[UIButton alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-40, SCREEN_WIDTH, 40)];
    backBut.backgroundColor = [UIColor whiteColor];
    [backBut addTarget:self action:@selector(backClick) forControlEvents:UIControlEventTouchUpInside];
    [backBut setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    [backBut setBackgroundImage:[UIImage imageNamed:@"bangdingyinhangka-fanhui"] forState:UIControlStateNormal];
//    [backBut setTitle:@"返回" forState:UIControlStateNormal];
    [self.view addSubview:backBut];
    
    
    
    UIView *backview = [[UIView alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-50, SCREEN_WIDTH, 50)];
    backview.backgroundColor = [UIColor grayColor];
    
    [self.view addSubview:backview];

    
    //已付款
    _yiFuKuan = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, (SCREEN_WIDTH-0.5)/2.0, 50)];
    [_yiFuKuan setBackgroundImage:[UIImage imageNamed:@"客户订单_已付款1"] forState:UIControlStateNormal];
    [_yiFuKuan addTarget:self action:@selector(yifukuan:) forControlEvents:UIControlEventTouchUpInside];
    [backview addSubview:_yiFuKuan];
    
    
    //未付款
    _weiFuKuanBut = [[UIButton alloc] initWithFrame:CGRectMake(_yiFuKuan.right+0.5, 0, (SCREEN_WIDTH-0.5)/2.0, 50)];
    [_weiFuKuanBut addTarget:self action:@selector(weiFhKuan:) forControlEvents:UIControlEventTouchUpInside];
    [_weiFuKuanBut setBackgroundImage:[UIImage imageNamed:@"客户订单_未付款1"] forState:UIControlStateNormal];
    [backview addSubview:_weiFuKuanBut];
    
    
}

#pragma -mark 已付款点击事件
- (void)yifukuan:(UIButton *)sender{
    _stateLabel.text = @"已付款";
    selete = 0;
    [_yiFuKuan setBackgroundImage:[UIImage imageNamed:@"客户订单_已付款1"] forState:UIControlStateNormal];
    [_weiFuKuanBut setBackgroundImage:[UIImage imageNamed:@"客户订单_未付款1"] forState:UIControlStateNormal];
   
    //判断是否有网
    NetStatus *status = [[NetStatus alloc] init];
    if ([status.networkStatus isEqualToString:@"无网络"]) {
        [GMDCircleLoader hideFromView:self.view animated:YES];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"无网络" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    sender.userInteractionEnabled = NO;
    NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
    NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"2"};
    
    
    [self.myListModel getCarList:self.listArray parameter:parameterDic];
        [GMDCircleLoader setOnView:self.view withTitle:@"加载中···" animated:YES];
}

#pragma -mark 未付款点击事件
- (void)weiFhKuan:(UIButton *)sender{
    
    _stateLabel.text = @"未付款";
    selete = 1;
    [_weiFuKuanBut setBackgroundImage:[UIImage imageNamed:@"客户订单_未付款2"] forState:UIControlStateNormal];
    [_yiFuKuan setBackgroundImage:[UIImage imageNamed:@"客户订单_已付款2"] forState:UIControlStateNormal];
    //判断是否有网
    NetStatus *status = [[NetStatus alloc] init];
    if ([status.networkStatus isEqualToString:@"无网络"]) {
        [GMDCircleLoader hideFromView:self.view animated:YES];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"无网络" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    sender.userInteractionEnabled = NO;
    NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
    NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"1"};
    [self.myListModel getCarList:self.listArray parameter:parameterDic];
        [GMDCircleLoader setOnView:self.view withTitle:@"加载中···" animated:YES];
    
}
#pragma -mark 创建日期Button方法
- (void)createDateButton{
    
    
    self.mydateBtn = [DateBut dateButWithButton];
    
    [self.mydateBtn addTarget:self action:@selector(dateBtnActionclick:) forControlEvents:UIControlEventTouchUpInside];
    
    //    UIBarButtonItem *dateButItem = [[UIBarButtonItem alloc] initWithCustomView:self.mydateBtn2];
    //    self.navigationItem.rightBarButtonItem = dateButItem;
    
    UIWindow *windows = [[[UIApplication sharedApplication] delegate ] window];
    self.mydateBtn.frame = CGRectMake(SCREEN_WIDTH-70, 30, 60, 25);
    [windows addSubview:self.mydateBtn];
    
}
#pragma -mark 获取日期
- (void)dateBtnActionclick:(UIButton *)sender{
    NSLog(@"日期");
    self.pmCC = [[PMCalendarController alloc] init];
    self.pmCC.delegate = self;
    self.pmCC.mondayFirstDayOfWeek = YES;
    
    [self.pmCC presentCalendarFromView:sender permittedArrowDirections:PMCalendarArrowDirectionAny animated:YES];
    
    [self calendarController:self.pmCC didChangePeriod:self.pmCC.period];
    
}


static int i = 0;
- (void)calendarController:(PMCalendarController *)calendarController didChangePeriod:(PMPeriod *)newPeriod
{
    NSString *time =[NSString stringWithFormat:@"%@"
                     , [newPeriod.startDate dateStringWithFormat:@"yyyy-MM"]];
    [self.mydateBtn setTitle:time forState:UIControlStateNormal];
    
    self.startTime = [NSString stringWithFormat:@"%@%@", [newPeriod.startDate dateStringWithFormat:@"yyyy-MM-"],@"1"];
    NSInteger mydate = [self gainMonthNumber];
    self.endTime = [NSString stringWithFormat:@"%@%zi", [newPeriod.startDate dateStringWithFormat:@"yyyy-MM-"],mydate];
    NSLog(@"开始时间 ＝＝＝ %@,结束时间 ＝＝ %@",_startTime,_endTime);
    
    if (i%2!=0) {
        [self.pmCC dismissCalendarAnimated:YES];
        
    }
    
    i++;
}

#pragma -mark 获取当月天数
-(NSInteger)gainMonthNumber{
    NSCalendar *calendar = [NSCalendar currentCalendar];
    //    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    //    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    //    NSDate *date = [dateFormatter dateFromString:@"2015-02-04 16:01:03"];
    NSRange range = [calendar rangeOfUnit:NSDayCalendarUnit inUnit:NSMonthCalendarUnit forDate:[NSDate date]];
    
    NSUInteger numberOfDaysInMonth = range.length;
    return  numberOfDaysInMonth;
}

- (BOOL)calendarControllerShouldDismissCalendar:(PMCalendarController *)calendarController{
    
    
    return YES;
}

- (void)calendarControllerDidDismissCalendar:(PMCalendarController *)calendarController{
      [GMDCircleLoader setOnView:self.view withTitle:@"加载中···" animated:YES];
    
    //判断是否有网
    NetStatus *status = [[NetStatus alloc] init];
    if ([status.networkStatus isEqualToString:@"无网络"]) {
        [GMDCircleLoader hideFromView:self.view animated:YES];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"无网络" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    //选择日期结束
    if (selete == 0) {//已付款
        
        NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
        
        NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"2",@"StartTime":self.startTime,@"EndTime":self.endTime};
        
        [self.myListModel getCarList:self.listArray parameter:parameterDic];
        
    }else{//未付款
        
        NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
        
        NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":@"1",@"StartTime":self.startTime,@"EndTime":self.endTime};
        
        [self.myListModel getCarList:self.listArray parameter:parameterDic];
    }
    
}


#pragma -mark 掉用支付结束
- (void)getZhiFuEnd{
    
    [self weiFhKuan:nil];
}
#pragma -makr 点击了支付按钮
- (void)touchzhifu{
    [GMDCircleLoader setOnView:self.view withTitle:@"支付中..." animated:YES];
}
#pragma -mark 网络／请求异常代理
- (void)requestError{
    [self.refreshFooter endRefreshing];
        [GMDCircleLoader hideFromView:self.view animated:YES];
    _yiFuKuan.userInteractionEnabled = YES;
    _weiFuKuanBut.userInteractionEnabled = YES;
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"网络异常,无法加载数据" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
    [alert show];
}
#pragma -makr 支付错误代理
- (void)zhifuError{
    [self.refreshFooter endRefreshing];
  [GMDCircleLoader hideFromView:self.view animated:YES];
}
- (void)getrequesterror:(NSString *)error{
    _yiFuKuan.userInteractionEnabled = YES;
    _weiFuKuanBut.userInteractionEnabled = YES;
    [self.tableView reloadData];
      [GMDCircleLoader hideFromView:self.view animated:YES];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:error delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
    [alert show];

}

#pragma -mark 返回
- (void)backClick{
    self.listVC.hidesBottomBarWhenPushed = NO;
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma -mark 获取库存订单已付款数据结束
- (void)getCuCunlistYiFuKuanEnd{
    [self.refreshFooter endRefreshing];
    _yiFuKuan.userInteractionEnabled = YES;
    _weiFuKuanBut.userInteractionEnabled = YES;
    NSLog(@"获取已支付库存订单结束 我的数组长度 ＝＝＝＝ %ld",self.listArray.count);
    [GMDCircleLoader hideFromView:self.view animated:YES];
    [self.tableView reloadData];
}

- (void)createNavSubviews{

    
    
 
    
    UIView *qview = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 40)];
    
    UIButton *backBut = [UIButton buttonWithType:UIButtonTypeCustom];
    backBut.frame = CGRectMake(-25, -2, 85, 44);
    
    [backBut setImage:[UIImage imageNamed:@"fanhui"] forState:UIControlStateNormal];
    [backBut addTarget:self action:@selector(BackBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [qview addSubview:backBut];
    
//    UILabel *title = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-110, 5, 200, 30)];
//    title.textAlignment = NSTextAlignmentCenter;
//    title.font = [UIFont fontWithName:@"Helvetica-Bold" size:17];
//    title.text = @"订单";
//    title.textColor = [UIColor whiteColor];
//    [qview addSubview:title];
    self.navigationItem.titleView = qview;
    
  //搜索框
    _searchView = [[UITextField alloc]initWithFrame:CGRectMake(backBut.right, 5, SCREEN_WIDTH-backBut.frame.size.width*2, 30)];
    _searchView.layer.masksToBounds = YES;
    _searchView.delegate = self;
    _searchView.layer.cornerRadius = 6/2;
    _searchView.textColor = [UIColor whiteColor];
    _searchView.backgroundColor = SearColor;
    _searchView.placeholder = @"输入订单号";
     [_searchView setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
    _searchView.font = [UIFont fontWithName:nil size:12];
    [qview addSubview:_searchView];
    
    //搜索图片
    
    UIButton *searchImage = [[UIButton alloc]initWithFrame:CGRectMake(_searchView.right-30, 5, 30, 30)];
    searchImage.backgroundColor = [UIColor clearColor];
    [searchImage setImage:[UIImage imageNamed:@"订单--我的订单_03_02"] forState:UIControlStateNormal];
    [searchImage addTarget:self action:@selector(sourchClick:) forControlEvents:UIControlEventTouchUpInside];
    [qview addSubview:searchImage];
    


}
#pragma -mark 搜索点击键盘Return代理方法
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    [textField resignFirstResponder];
    if ([_searchView.text isEqualToString:@""]) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"请输入要搜索的订单号" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return YES;
    }
     [self search];
    return YES;
}
#pragma -mark 返回按钮事件
- (void)BackBtnClick{
    [self.mydateBtn removeFromSuperview];
    self.listVC.hidesBottomBarWhenPushed = NO;
    [self.navigationController popViewControllerAnimated:YES];
}


#pragma -mark 点击搜索事件
- (void)sourchClick:(UIButton *)sender{
  
    [self search];
}


#pragma -mark 搜索
- (void)search{
    [_searchView resignFirstResponder];
    if ([_searchView.text isEqualToString:@""]||[_searchView.text isEqual:[NSNull null]]) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"请输入订单号" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    
    //判断是否有网
    NetStatus *status = [[NetStatus alloc] init];
    if ([status.networkStatus isEqualToString:@"无网络"]) {
        [GMDCircleLoader hideFromView:self.view animated:YES];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"无网络" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [alert show];
        return;
    }
    NSString *masterOrderStatus = @"";
    if (selete == 0) {
        masterOrderStatus = @"2";
    } else{
        masterOrderStatus = @"1";
    }
      [GMDCircleLoader setOnView:self.view withTitle:@"加载中···" animated:YES];
    NSString *agentId = [[NSUserDefaults standardUserDefaults] objectForKey:@"userID"];
    
    NSDictionary *parameterDic = @{@"AgentID":agentId,@"OrderTypeID":@"1",@"MasterOrderStatus":masterOrderStatus,@"MasterOrderID":_searchView.text};
    
    [self.myListModel getCarList:self.listArray parameter:parameterDic];
}



#pragma mark - 返回
-(void)clickBackBtn{
    
    __weak  MainTabBarController *mainTabar = self.mainLineCV;
   [self.navigationController dismissViewControllerAnimated:NO completion:^{
       mainTabar.selectedIndex = 0;
       
   }];
}







-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    
    return self.listArray.count;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 240;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    NSDictionary *dic = self.listArray[indexPath.row];
    NSArray *modelarray =dic[@"ProductInfoModelArr"];

    CuCunTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:accountCell];
    if (cell == nil) {
        cell = [[CuCunTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:accountCell];
        cell.cuCunTableViewCellDelegate = self;
    }
    if (selete == 0) {
        MyListModel *listModel = dic[@"YiFuKuanModel"];
        [cell showCuCunTableViewData:listModel array:modelarray];
        cell.lineView.queRenBut.hidden = YES;
         return cell;
    } else
        
   cell.lineView.queRenBut.hidden = NO;
    MyListModel *listModel = dic[@"YiFuKuanModel"];
    [cell showCuCunTableViewData:listModel array:modelarray];
    return cell;
    
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{


}




@end
